package com.lx.yygh.hosp.repository;

import com.lx.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author c先生
 * @date 2022年10月16日 下午 5:34:30
 * @describe
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {
    Department getHospitalByHoscode(String hoscode);

    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
